package com.kehongborui.empmanagesys.mapper;

import com.kehongborui.empmanagesys.entity.Emp;
import com.kehongborui.empmanagesys.model.Page;
import com.kehongborui.empmanagesys.model.QueryCondition;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zhang peng yang ming
 * @CopyRight (C) http://www.csdn.com
 * @brief
 * @email 122162005@qq.com
 * @date 2018-08-01
 */
public interface EmpMapper {
    /**
     * 根据传入的条件查询所有员工信息
     * @param queryCondition
     * @return
     */
    List<Emp> findAll(@Param("queryCondition")QueryCondition queryCondition, @Param("page") Page page);

    /**
     * 根据条件查找对应的记录总数量
     * @param queryCondition
     * @return
     */
    Integer amount(@Param("queryCondition") QueryCondition queryCondition);
}
